package com.gitee.cirnochat.login.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName iprange_info
 */
@TableName(value ="iprange_info")
@Data
public class IprangeInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 起始IP
     */
    @TableField(value = "ip_start")
    private String ipStart;

    /**
     * IP起始整数
     */
    @TableField(value = "ip_start_num")
    private Long ipStartNum;

    /**
     * 结束IP
     */
    @TableField(value = "ip_end")
    private String ipEnd;

    /**
     * IP结束整数
     */
    @TableField(value = "ip_end_num")
    private Long ipEndNum;

    /**
     * 国家/地区/组织
     */
    @TableField(value = "country")
    private String country;

    /**
     * 省/自治区/直辖市
     */
    @TableField(value = "province")
    private String province;

    /**
     * 地级市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 县/区/乡/镇/街道
     */
    @TableField(value = "area")
    private String area;

    /**
     * 详细地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 运营商/节点
     */
    @TableField(value = "location")
    private String location;

    /**
     * 更新日期
     */
    @TableField(value = "UpdateTime")
    private LocalDateTime updatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}